/**
 * Created by john on 2016/4/30.
 */

window.console || (window.console = {
    log: function ()
    {
    }, info: function ()
    {
    }, debug: function ()
    {
    }, warn: function ()
    {
    }, error: function ()
    {
    }
});

$(function(){

    $.fn.serializeJson = function () {
        var serializeObj = {};
        $(this.serializeArray()).each(function () {
            //if (this.value != "") {
            serializeObj[this.name] = this.value;
            //}
        });
        return serializeObj;
    };
});
function onError() {
    alert("服务器错误");
}


